Skip to content

drm/vc4_hdmi: Add Broadcast RGB property to allow override of RGB range - #4850

Merged
pelwell merged 1 commit into
raspberrypi:rpi-5.10.yfrom
popcornmix:broadcast_rgb
Jan 26, 2022
Merged

pelwell merged 1 commit into
raspberrypi:rpi-5.10.yfrom
popcornmix:broadcast_rgb

Conversation

@popcornmix

Copy link
Copy Markdown
Collaborator

Copy Intel's "Broadcast RGB" property semantics to add manual override
of the HDMI pixel range for monitors that don't abide by the content
of the AVI Infoframe.

Signed-off-by: Dave Stevenson dave.stevenson@raspberrypi.com

@popcornmix

Copy link
Copy Markdown
Collaborator Author

@6by9 I've dug this out of #3535 as I suspect some users with brightness complaints for videos may be suffering from a display that doesn't handle limited or full range correctly.

It's changed shape a bit due to other restructuring.

@popcornmix

Copy link
Copy Markdown
Collaborator Author

I'll leave notes here of what I tested.

systemctl stop kodi
modetest -M vc4 -w 32:"Broadcast RGB":1
systemctl start kodi

will force full range RGB with kodi (it does persist after kodi changes hdmi mode).
You can change the 1 to a 2 to force limited range.

@6by9

6by9 commented Jan 26, 2022

Copy link
Copy Markdown
Contributor

May as well merge it.
Memory says that later kernels have reworked the code that actually sets the range, so it may not cherry-pick cleanly.

@popcornmix

Copy link
Copy Markdown
Collaborator Author

Conflicts are only trivial (debug_fs registers are declared in different place in header).

Comment thread drivers/gpu/drm/vc4/vc4_hdmi.c Resolved
Copy Intel's "Broadcast RGB" property semantics to add manual override
of the HDMI pixel range for monitors that don't abide by the content
of the AVI Infoframe.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
@pelwell
pelwell merged commit a404587 into raspberrypi:rpi-5.10.y Jan 26, 2022
@pelwell

pelwell commented Jan 26, 2022

Copy link
Copy Markdown
Contributor

Cherry-picked to 5.15, 5.16 and 5.17.

@popcornmix
popcornmix deleted the broadcast_rgb branch January 27, 2022 11:43
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Jan 27, 2022
See: raspberrypi/linux#4845

kernel: drm/vc4_hdmi: Add Broadcast RGB property to allow override of RGB range
See: raspberrypi/linux#4850

kernel: Update rpi-display overlay
See: raspberrypi/linux#4841

kernel: ARM: dts: BCM2711 AON_INTR2 generates IRQ edges
See: raspberrypi/linux#4838

kernel: drivers: bcm2835_unicam: Disable trigger mode operation
See: raspberrypi/linux#4834

kernel: random: fix crash on multiple early calls to add_bootloader_randomness
See: raspberrypi/linux#4829
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Jan 27, 2022
See: raspberrypi/linux#4845

kernel: drm/vc4_hdmi: Add Broadcast RGB property to allow override of RGB range
See: raspberrypi/linux#4850

kernel: Update rpi-display overlay
See: raspberrypi/linux#4841

kernel: ARM: dts: BCM2711 AON_INTR2 generates IRQ edges
See: raspberrypi/linux#4838

kernel: drivers: bcm2835_unicam: Disable trigger mode operation
See: raspberrypi/linux#4834

kernel: random: fix crash on multiple early calls to add_bootloader_randomness
See: raspberrypi/linux#4829
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants